package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * 用户 MongoDB数据的接口
 */
@Repository
public interface UserRepository extends MongoRepository<User , String> {
    /**
     * 根据手机号查询用户信息
     * @return
     */
    User findByPhone(String phone);
}
